<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title></title>
		<style type="text/css">
			*{
				margin: 0;
				padding: 0;
			}
			.container{
				width: 100%;
				height: 300px;
				background: lavender;
				padding: 0 15px;
				box-sizing: border-box;
			}
			.container>div{
				width: 100%;
				height: 100%;
				background: violet;
			}
			.container>div>ul{
				width: 100%;
			}
			.container>div>ul>li{
				width: 20%;
				height:33%;
				background: violet;
				list-style: none;
				text-align: center;
				padding-top:20px;
				float: left;
				position: relative;
				box-sizing: border-box;
			}
			.container>div>ul>li>img{
				width: 70%;
				height:40px;
			}
		/* 	.container>div>ul>.big>img{
				width: 70%; :class="{big:i<5}"
				height:40px;
			} */
		</style>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="box">
			<div class="container">
				<div>
					<ul>
						<li v-for="(v,i) in nav">
							<img :src="v.src" >
							<p>{{v.text}}</p>
						</li>
					
					</ul>
				</div>				
			</div>
		</div>
		<script type="text/javascript">
			new Vue({
				el:"#box",
				data:{
					nav:[
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"},
					{src:"img/king.png",text:"嗨"}
					]
				}
			})
		</script>
	</body>
</html>
